package com.example.demo.model;

import com.example.demo.controller.TestController;
import lombok.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 马拉圈
 * Date: 2023-08-07
 * Time: 16:04
 */

@Component
@Data
public class User {

    private int id;
    private String name;

    private static Logger logger = LoggerFactory.getLogger(User.class);
    public void sayHi() {
        logger.trace("trace");
        logger.debug("debug");
        logger.info("info");
        logger.warn("warn");
        logger.error("error");
    }

}
